package com.zjj.algorithm.learning.dmsxl.tree;

/**
 * 二叉树节点
 * @author zjj_admin
 * @date 2022/11/22 9:42
 */
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;

    TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }

}
